home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
036a
/
pmfinder.zip
/
PMFINDER.H
< prev
next >
Wrap
Text File
|
1991-12-05
|
2KB
|
67 lines
/*
* OS/2 PM File Finder Utility - HEADER FILE
*
* LANGUAGE : Microsoft C5.1
* MODEL : large - MT
* ENVIRONMENT : Microsoft OS/2 PM SDK
* STATUS : operational
*
* 11/01/88 1.00 - Jerry Weldon - initial creation.
* 03/22/91 1.10 - Robert Mahoney - added multi-threading.
* 11/25/91 1.20 - Robert Mahoney - added zip file search.
*
*/
/* resource ids */
#define ID_FINDER 1
/* dialog ids */
#define IDD_PATTERN 100
#define IDD_DRIVES 101
#define IDD_FILES 102
#define IDD_SEARCH 103
#define IDD_QUIT 105
#define IDD_CANCEL 106
#define IDCB_ARCHIVE 107
#define IDRB_ONLY 108
#define IDRB_ALSO 109
#define IDLB_ARCHIVE 110
#define IDT_STATUS 111
#define IDD_ABOUTDLG 200
/* menu ids */
#define IDM_ABOUT 101
#define STACKSIZE 8192
#define WM_THREAD_DONE (WM_USER + 0)
#define HWNDOWNER(h) WinQueryWindow( h, QW_OWNER, FALSE )
typedef struct
{
char drive_spec[26];
char szPattern[12];
HWND hwndListBox;
HWND hwndDlg;
char szArchive[4];
}
SCANTHREADPARM;
typedef SCANTHREADPARM FAR *PSCANTHREADPARM;
/* macro definitions */
#define ABS(x) ((x)<0?(-(x)):(x))
#define HWNDOWNER(h) WinQueryWindow( h, QW_OWNER, FALSE )
#define HWNDPARENT(h) WinQueryWindow( h, QW_PARENT, FALSE )
#define MAPWINDOWRECTS(hwndFrom,hwndTo,prcl,crcl) \
WinMapWindowPoints( hwndFrom, hwndTo, (PPOINTL)prcl, 2*crcl )
/* function prototypes */
MRESULT EXPENTRY FinderDlgProc( HWND, USHORT, MPARAM, MPARAM );
MRESULT EXPENTRY AboutDlgProc( HWND, USHORT, MPARAM, MPARAM );
static VOID CenterPopup( HWND, HWND );
VOID cdecl FAR ScanThread( PSCANTHREADPARM);
void StartSearch(HWND hwnd);
void InitDlgBox(HWND hwnd);